import { http } from "@/utils/http";
/**
 * 文件上传
 */
export function upload(data) {
  return http.post(
    "/api/private/upload",
    { data },
    {
      headers: {
        "Content-Type": "multipart/form-data"
      }
    }
  );
}
/**
 * 文件下载
 */
export function downloadFile(path: string) {
  return http.get(`/api/public/v1/getFiles/download?path=${path}`);
}
